﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="ProductAdd.aspx.vb" Inherits="pages_products_ProductAdd"
    MasterPageFile="~/pages/default.master"
    Title="Create new Product"
    ValidateRequest="False"
%>

<asp:Content ID="c" ContentPlaceHolderID="body" runat="server">

    <uc:FormBegin ID="fb" runat="server" />
        <uc:Dropdown ID="ddProductTypeId" Runat="server" Required="true" Label="Type" RepeatDirection=Horizontal RepeatLayout=Flow />
        <uc:Textbox  ID="txtProductName" runat="server" Required="true" Label="Name" />
        <uc:Dropdown ID=ddProductBelongsToProductId runat=server Label="Belongs To" DataTextField="ProductNameAndContents" DataValueField="ProductId"  />
        <uc:Dropdown ID=ddSpeaker runat=server Label="Speaker" DataTextField="SpeakerName" DataValueField="SpeakerId" Required=true  />
        <uc:Dropdown ID=ddLanguage runat=server Label="Language" DataTextField="LanguageName" DataValueField="LanguageId" Required=true  />
        <uc:Textbox ID=txtCreated runat=server Required=true Label="Created" TextMode=Date />


        <uc:FormButtonsBegin ID="fbb" runat="server" />
            <asp:button id="btnSave"    runat="server" text="Create" causesvalidation="True"  />
            <asp:button id="btnCancel"  runat="server" text="Cancel" causesvalidation="False" OnClientClick="window.back()" />
        <uc:FormButtonsEnd   ID="fbe" runat="server" />
        
    <uc:FormEnd ID="fe" runat="server" />
    
    <asp:ValidationSummary ID="vs" runat="server" ShowSummary="true" EnableClientScript="true" DisplayMode="BulletList" />
</asp:Content>